<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: search.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">search.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Middle-level search functions. </p>
<p>They all are controlled by <a class="el" href="group___s_e_a_r_c_h__.html">Search flags</a> </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa65a644e2493ab7332c2eb2fd83d54ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa65a644e2493ab7332c2eb2fd83d54ae"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#aa65a644e2493ab7332c2eb2fd83d54ae">search_down</a> (int sflag)</td></tr>
<tr class="memdesc:aa65a644e2493ab7332c2eb2fd83d54ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is the <a class="el" href="group___s_e_a_r_c_h__.html#gac12e00157044276a171bdea184310ac7" title="search towards higher addresses ">SEARCH_DOWN</a> bit set? <br /></td></tr>
<tr class="separator:aa65a644e2493ab7332c2eb2fd83d54ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f21cb8163a530d4ee1be7da86168b21"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a0f21cb8163a530d4ee1be7da86168b21">search</a> (void *ud, <a class="el" href="classplace__t.html">place_t</a> *start, const <a class="el" href="classplace__t.html">place_t</a> *end, int *startx, const char *str, int sflag)</td></tr>
<tr class="memdesc:a0f21cb8163a530d4ee1be7da86168b21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search for a text substring (low level function).  <a href="#a0f21cb8163a530d4ee1be7da86168b21">More...</a><br /></td></tr>
<tr class="separator:a0f21cb8163a530d4ee1be7da86168b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a036ce6028cade63fb106ae3c6ebb0ed5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a036ce6028cade63fb106ae3c6ebb0ed5">user2bin</a> (<a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a> *out, <a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a> *mask, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, const char *in, int radix, bool unicode)</td></tr>
<tr class="memdesc:a036ce6028cade63fb106ae3c6ebb0ed5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert user-specified binary string to internal representation.  <a href="#a036ce6028cade63fb106ae3c6ebb0ed5">More...</a><br /></td></tr>
<tr class="separator:a036ce6028cade63fb106ae3c6ebb0ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">find_... functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">ea</td><td>start ea </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">sflag</td><td>combination of <a class="el" href="group___s_e_a_r_c_h__.html">Search flags</a> </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">opnum</td><td>filled with operand number whenever relevant </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>first ea at which the search criteria is met </dd></dl>
</div></td></tr>
<tr class="memitem:a7474a6c67d580141187ab908ca9a4272"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7474a6c67d580141187ab908ca9a4272"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a7474a6c67d580141187ab908ca9a4272">find_error</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag, int *opnum=NULL)</td></tr>
<tr class="memdesc:a7474a6c67d580141187ab908ca9a4272"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next error or problem. <br /></td></tr>
<tr class="separator:a7474a6c67d580141187ab908ca9a4272"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a7e5f8587f544709fc345fadabc1563"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a7e5f8587f544709fc345fadabc1563"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a8a7e5f8587f544709fc345fadabc1563">find_notype</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag, int *opnum=NULL)</td></tr>
<tr class="memdesc:a8a7e5f8587f544709fc345fadabc1563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next operand without any type info. <br /></td></tr>
<tr class="separator:a8a7e5f8587f544709fc345fadabc1563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac45d0f53b72fff96d7565fd2b5c8baba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac45d0f53b72fff96d7565fd2b5c8baba"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#ac45d0f53b72fff96d7565fd2b5c8baba">find_unknown</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag)</td></tr>
<tr class="memdesc:ac45d0f53b72fff96d7565fd2b5c8baba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next unexplored address. <br /></td></tr>
<tr class="separator:ac45d0f53b72fff96d7565fd2b5c8baba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbb9b1df80ef79fc966fcf45cc9ac9c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbb9b1df80ef79fc966fcf45cc9ac9c8"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#acbb9b1df80ef79fc966fcf45cc9ac9c8">find_defined</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag)</td></tr>
<tr class="memdesc:acbb9b1df80ef79fc966fcf45cc9ac9c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next ea that is the start of an instruction or data. <br /></td></tr>
<tr class="separator:acbb9b1df80ef79fc966fcf45cc9ac9c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c1777ae83f328eb38ec907bfa3274fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c1777ae83f328eb38ec907bfa3274fb"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a5c1777ae83f328eb38ec907bfa3274fb">find_suspop</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag, int *opnum=NULL)</td></tr>
<tr class="memdesc:a5c1777ae83f328eb38ec907bfa3274fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next suspicious operand. <br /></td></tr>
<tr class="separator:a5c1777ae83f328eb38ec907bfa3274fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c80ddcc7e31a374761378ecc6ff67f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c80ddcc7e31a374761378ecc6ff67f3"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a6c80ddcc7e31a374761378ecc6ff67f3">find_data</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag)</td></tr>
<tr class="memdesc:a6c80ddcc7e31a374761378ecc6ff67f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next data address. <br /></td></tr>
<tr class="separator:a6c80ddcc7e31a374761378ecc6ff67f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763582178af8e53772505dea8d5969ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a763582178af8e53772505dea8d5969ea"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a763582178af8e53772505dea8d5969ea">find_code</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag)</td></tr>
<tr class="memdesc:a763582178af8e53772505dea8d5969ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next code address. <br /></td></tr>
<tr class="separator:a763582178af8e53772505dea8d5969ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749f37008540e05d3bd1165a0466306d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a749f37008540e05d3bd1165a0466306d"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a749f37008540e05d3bd1165a0466306d">find_not_func</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int sflag)</td></tr>
<tr class="memdesc:a749f37008540e05d3bd1165a0466306d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next code address that does not belong to a function. <br /></td></tr>
<tr class="separator:a749f37008540e05d3bd1165a0466306d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45980ffaa10718bd2138a10431f6aff8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45980ffaa10718bd2138a10431f6aff8"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a45980ffaa10718bd2138a10431f6aff8">find_imm</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> newEA, int sflag, <a class="el" href="pro_8h.html#aef265b11f25357d520dcfd40aa8c18f3">uval_t</a> srchValue, int *opnum=NULL)</td></tr>
<tr class="memdesc:a45980ffaa10718bd2138a10431f6aff8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next immediate operand with the given value. <br /></td></tr>
<tr class="separator:a45980ffaa10718bd2138a10431f6aff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e9b5e4975c9293bc4cbffb7d5b5d79b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a6e9b5e4975c9293bc4cbffb7d5b5d79b">find_binary</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> startea, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> endea, const char *ubinstr, int radix, int sflag)</td></tr>
<tr class="memdesc:a6e9b5e4975c9293bc4cbffb7d5b5d79b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next address that denotes the start of the specified binary sequence (specified in text form).  <a href="#a6e9b5e4975c9293bc4cbffb7d5b5d79b">More...</a><br /></td></tr>
<tr class="separator:a6e9b5e4975c9293bc4cbffb7d5b5d79b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61557e85db95556f3374b2b7c194f8ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61557e85db95556f3374b2b7c194f8ff"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="search_8hpp.html#a61557e85db95556f3374b2b7c194f8ff">find_text</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> start_ea, int y, int x, const char *ustr, int sflag)</td></tr>
<tr class="memdesc:a61557e85db95556f3374b2b7c194f8ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="search_8hpp.html#a0f21cb8163a530d4ee1be7da86168b21" title="Search for a text substring (low level function). ">search()</a> <br /></td></tr>
<tr class="separator:a61557e85db95556f3374b2b7c194f8ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga3d97b1e2d95366bd07c1cbfb85869512"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3d97b1e2d95366bd07c1cbfb85869512"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga3d97b1e2d95366bd07c1cbfb85869512">SEARCH_UP</a>&#160;&#160;&#160;0x000</td></tr>
<tr class="memdesc:ga3d97b1e2d95366bd07c1cbfb85869512"><td class="mdescLeft">&#160;</td><td class="mdescRight">search towards lower addresses <br /></td></tr>
<tr class="separator:ga3d97b1e2d95366bd07c1cbfb85869512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac12e00157044276a171bdea184310ac7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac12e00157044276a171bdea184310ac7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#gac12e00157044276a171bdea184310ac7">SEARCH_DOWN</a>&#160;&#160;&#160;0x001</td></tr>
<tr class="memdesc:gac12e00157044276a171bdea184310ac7"><td class="mdescLeft">&#160;</td><td class="mdescRight">search towards higher addresses <br /></td></tr>
<tr class="separator:gac12e00157044276a171bdea184310ac7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3dcb08a478e43f74de7a50988a62ede"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#gaf3dcb08a478e43f74de7a50988a62ede">SEARCH_NEXT</a>&#160;&#160;&#160;0x002</td></tr>
<tr class="memdesc:gaf3dcb08a478e43f74de7a50988a62ede"><td class="mdescLeft">&#160;</td><td class="mdescRight">useful only for <a class="el" href="search_8hpp.html#a0f21cb8163a530d4ee1be7da86168b21" title="Search for a text substring (low level function). ">search()</a> and <a class="el" href="search_8hpp.html#a6e9b5e4975c9293bc4cbffb7d5b5d79b" title="Find next address that denotes the start of the specified binary sequence (specified in text form)...">find_binary()</a>.  <a href="group___s_e_a_r_c_h__.html#gaf3dcb08a478e43f74de7a50988a62ede">More...</a><br /></td></tr>
<tr class="separator:gaf3dcb08a478e43f74de7a50988a62ede"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a97cdbfb09753a8dd54e97f0fafb346"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3a97cdbfb09753a8dd54e97f0fafb346"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga3a97cdbfb09753a8dd54e97f0fafb346">SEARCH_CASE</a>&#160;&#160;&#160;0x004</td></tr>
<tr class="memdesc:ga3a97cdbfb09753a8dd54e97f0fafb346"><td class="mdescLeft">&#160;</td><td class="mdescRight">case-sensitive search (case-insensitive otherwise) <br /></td></tr>
<tr class="separator:ga3a97cdbfb09753a8dd54e97f0fafb346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5712c082264d458a56b90d6e0f06c172"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5712c082264d458a56b90d6e0f06c172"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga5712c082264d458a56b90d6e0f06c172">SEARCH_REGEX</a>&#160;&#160;&#160;0x008</td></tr>
<tr class="memdesc:ga5712c082264d458a56b90d6e0f06c172"><td class="mdescLeft">&#160;</td><td class="mdescRight">regular expressions in search string (only supported for txt search) <br /></td></tr>
<tr class="separator:ga5712c082264d458a56b90d6e0f06c172"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63887830d23f01a0d027e1b5ef7711fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga63887830d23f01a0d027e1b5ef7711fb"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga63887830d23f01a0d027e1b5ef7711fb">SEARCH_NOBRK</a>&#160;&#160;&#160;0x010</td></tr>
<tr class="memdesc:ga63887830d23f01a0d027e1b5ef7711fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">don't test for ctrl-break to interrupt the search <br /></td></tr>
<tr class="separator:ga63887830d23f01a0d027e1b5ef7711fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2abe5bf54cde329b6ebd008eef823d05"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2abe5bf54cde329b6ebd008eef823d05"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga2abe5bf54cde329b6ebd008eef823d05">SEARCH_NOSHOW</a>&#160;&#160;&#160;0x020</td></tr>
<tr class="memdesc:ga2abe5bf54cde329b6ebd008eef823d05"><td class="mdescLeft">&#160;</td><td class="mdescRight">don't display the search progress/refresh screen <br /></td></tr>
<tr class="separator:ga2abe5bf54cde329b6ebd008eef823d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05f850e96f157ac79aabb58793e98b3b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga05f850e96f157ac79aabb58793e98b3b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga05f850e96f157ac79aabb58793e98b3b">SEARCH_UNICODE</a>&#160;&#160;&#160;0x040</td></tr>
<tr class="memdesc:ga05f850e96f157ac79aabb58793e98b3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">treat literal strings as unicode (<a class="el" href="search_8hpp.html#a6e9b5e4975c9293bc4cbffb7d5b5d79b" title="Find next address that denotes the start of the specified binary sequence (specified in text form)...">find_binary()</a> only) <br /></td></tr>
<tr class="separator:ga05f850e96f157ac79aabb58793e98b3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b38b4fbc4daeeab4a4c9c31e19e07c1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga7b38b4fbc4daeeab4a4c9c31e19e07c1">SEARCH_IDENT</a>&#160;&#160;&#160;0x080</td></tr>
<tr class="memdesc:ga7b38b4fbc4daeeab4a4c9c31e19e07c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">search for an identifier (text search).  <a href="group___s_e_a_r_c_h__.html#ga7b38b4fbc4daeeab4a4c9c31e19e07c1">More...</a><br /></td></tr>
<tr class="separator:ga7b38b4fbc4daeeab4a4c9c31e19e07c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05c371be0649299993e7a547af71d719"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga05c371be0649299993e7a547af71d719"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_a_r_c_h__.html#ga05c371be0649299993e7a547af71d719">SEARCH_BRK</a>&#160;&#160;&#160;0x100</td></tr>
<tr class="memdesc:ga05c371be0649299993e7a547af71d719"><td class="mdescLeft">&#160;</td><td class="mdescRight">return <a class="el" href="pro_8h.html#a63a7c1cde5fb0cf0d0023d55c742dd4f" title="this value is used for &#39;bad address&#39; ">BADADDR</a> if Ctrl-Break wass pressed during search <br /></td></tr>
<tr class="separator:ga05c371be0649299993e7a547af71d719"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a6e9b5e4975c9293bc4cbffb7d5b5d79b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> find_binary </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a>&#160;</td>
          <td class="paramname"><em>startea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a>&#160;</td>
          <td class="paramname"><em>endea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ubinstr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>radix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sflag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Find next address that denotes the start of the specified binary sequence (specified in text form). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">startea,endea</td><td>range to search </td></tr>
    <tr><td class="paramname">ubinstr,radix</td><td>see <a class="el" href="search_8hpp.html#a036ce6028cade63fb106ae3c6ebb0ed5" title="Convert user-specified binary string to internal representation. ">user2bin()</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0f21cb8163a530d4ee1be7da86168b21"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> search </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ud</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classplace__t.html">place_t</a> *&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classplace__t.html">place_t</a> *&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>startx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sflag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Search for a text substring (low level function). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">ud</td><td>line array parameter </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">start</td><td>pointer to starting place:<ul>
<li>start-&gt;ea: starting address</li>
<li>start-&gt;lnnum: starting Y coordinate </li>
</ul>
</td></tr>
    <tr><td class="paramdir"></td><td class="paramname">end</td><td>pointer to ending place:<ul>
<li>end-&gt;ea: ending address</li>
<li>end-&gt;lnnum: ending Y coordinate </li>
</ul>
</td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">startx</td><td>pointer to starting X coordinate </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">str</td><td>substring to search for. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">sflag</td><td><a class="el" href="group___s_e_a_r_c_h__.html">Search flags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>substring not found </td></tr>
    <tr><td class="paramname">1</td><td>substring found. The matching position is returned in:<ul>
<li>start-&gt;ea: address</li>
<li>start-&gt;lnnum: Y coordinate</li>
<li>*startx: X coordinate </li>
</ul>
</td></tr>
    <tr><td class="paramname">2</td><td>search was cancelled by ctrl-break. The farthest searched address is returned in the same manner as in the successful return (1). </td></tr>
    <tr><td class="paramname">3</td><td>the input regular expression is bad. The error message was displayed. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a036ce6028cade63fb106ae3c6ebb0ed5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> user2bin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a> *&#160;</td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a>&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>radix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>unicode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert user-specified binary string to internal representation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">out</td><td>buffer for the output sequence of bytes </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">mask</td><td>buffer for the output comparison mask. if mask[0] == 0xFF upon return, then there were question marks in the input text string. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">ea</td><td>linear address to convert for (the conversion depends on the address, because the number of bits in a byte depend on the segment type) </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">in</td><td>input text string. contains space-separated:<ul>
<li>numbers (numeric base is determined by 'radix')<ul>
<li>if value of number fits a byte, it is considered as a byte</li>
<li>if value of number fits a word, it is considered as 2 bytes</li>
<li>if value of number fits a dword,it is considered as 4 bytes</li>
</ul>
</li>
<li>"..." string constants</li>
<li>'x' single-character constants</li>
<li>? variable bytes </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Examples of search strings (assuming base 16): CD 21 - bytes 0xCD, 0x21 21CD - bytes 0xCD, 0x21 (little endian ) or 0x21, 0xCD (big-endian) "Hello", 0 - the null terminated string "Hello" L"Hello" - 'H', 0, 'e', 0, 'l', 0, 'l', 0, 'o', 0 B8 ? ? ? ? 90 - byte 0xB8, 4 bytes with any value, byte 0x90</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">radix</td><td>numeric base of numbers (8,10,16) </td></tr>
    <tr><td class="paramname">unicode</td><td>treat strings as unicode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>L"string" is another way to enter unicode strings </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>length of output string. -1 if the input string has bad format (warning is displayed). </dd></dl>
<dl class="section note"><dt>Note</dt><dd>the output buffers are assumed to be <a class="el" href="pro_8h.html#a5189100144828825ca4369c28c1261d1" title="maximum string size ">MAXSTR</a> bytes </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
